﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities;

namespace MineMES.EntityFrameworkCore
{
    public interface IRepository<TEntity>
    {
        void Add(TEntity entity);
        TEntity GetByKey(int id);
        IEnumerable<TEntity> FindBySpecification(Func<TEntity, bool> spec);
        void Remove(TEntity entity);
        void Update(TEntity entity);
    }
}
